package com.cheer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("organization")
public class Organization implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private String orgName;

    private Long parentOrgId;

    private Integer orgType;

    private Integer orgRole;

    private String orgPath;

    private Integer level;

    @TableField("is_category")
    private Boolean category;

    @TableLogic
    @TableField("is_deleted")
    private Boolean deleted;

    private Date createTime;

    private Date updateTime;
}
